const express = require('express')
const app = express()
app.get('/test', (req, res) => {
  console.log(req.query);
  res.send(req.query)
})
app.get('/user/:id', (req, res) => {
  console.log(req.params);
  res.send(req.params)
})
app.post('/test', (req, res) => {
  res.send('请求成功')
})
app.listen(8089, () => {
  console.log('服务器已启动 请访问http://127.0.0.1:8089');
})